<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets">
    <ui:include src="/resources/Cabecera.xhtml" />
    <h:head>
        <title>Facelet Title</title>
    </h:head>
    <h:body>
        <h:form id="form" enctype="multipart/form-data">
            Assignatura:
            <h:outputText value="#{practicaController.asignatura.asignatura}" />
            <br/>
            
            Practica:
            <h:outputText value="#{practicaController.pr.nombre}" />
            <br/>
            
            Nombre: <h:outputText value="#{usuarioController.usr.idperfilfk.nombre} 
                                  #{usuarioController.usr.idperfilfk.apellido1} 
                                  #{usuarioController.usr.idperfilfk.apellido2}" /><br/>
            
            Subir practica:
            <p:fileUpload value="#{practicaController.fileP}" mode="simple"/>  
  
            <p:commandButton value="Submit" ajax="false"  
                             actionListener="#{practicaController.upload2(usuarioController.usr)}"/>  
        </h:form>
    </h:body>
</html>

